def filter__():
    it = filter(bigger, [1, 2, 3, 4, 6, 7])
    print(list(it))


def bigger(x):
    if x > 5:
        return x


from functools import reduce


def sum(x, y):
    return x+y


def reduce__():
    li = reduce(sum, [1, 2, 3], 5)
    print(li)


def add(x):
    return x+2


def map__():
    li = map(add, [1, 2, 3], [3, 9])
    print(type(li))
    # TODO 此处无法取到结果，参数错误
    print(list(li))

if __name__ == '__main__':
    # filter__();
    # reduce__()
    map__()